package com.jx.driving.transmission;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;
import com.jx.driving.protocol.terminal.annotation.WordAnnotation;

/**
 * 请求统一编号应答消息
 * @author shenliuyang
 *
 * 2016年9月19日上午10:01:21
 */
@TerminalAnnotation
public class Terminal0x8402Transmission extends TimeTerminalTransmissionMessage {
	@WordAnnotation(order = 1)
	private int packageSequence;//驾培序号包
	@ByteAnnotation(order = 2)
	private short result;//查询结果0：成功；1：失败（失败时无后续字段）
	@LimitedStringAnnotation(order = 3, value = 16)
	private String no;//统一编号
	@LimitedStringAnnotation(order = 4, value = 2)
	private String drivingType;//准驾车型

	public int getPackageSequence() {
		return packageSequence;
	}

	public void setPackageSequence(int packageSequence) {
		this.packageSequence = packageSequence;
	}

	public short getResult() {
		return result;
	}

	public void setResult(short result) {
		this.result = result;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getDrivingType() {
		return drivingType;
	}

	public void setDrivingType(String drivingType) {
		this.drivingType = drivingType;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x8402Transmission [packageSequence=").append(packageSequence).append(", result=")
				.append(result).append(", no=").append(no).append(", drivingType=").append(drivingType).append("]");
		return builder.toString();
	}

}
